﻿using DLUProject.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.SessionState;

namespace DLUProject.Services
{
    public static class AccountSession
    {
        public static void SetAccountLogged(this HttpSessionState session, Account u)
        {
            session["AccountLogged"] = u;
        }
        public static Account GetAccountLogged(this HttpSessionState session)
        {
            return session["AccountLogged"] as Account;
        }       
        public static void RemoveAccountLogged(this HttpSessionState session)
        {
            session.Remove("AccountLogged");
        }
    }
}
